<template>
	<view class="pay-container">
		<view class="pay-top">
			<view class="wait">
				支付剩余时间00:15:00
			</view>
			<view class="total">
				￥250.25
			</view>
		</view>
		<view class="pay">
			<u-radio-group v-model="value" @change="groupChange" >
				<view class="weixin">
					<view class="left">
						<u-icon name="weixin-fill" size="35" color="#09BB07"></u-icon>
						<text class="method">微信支付</text>
					</view>
					<u-radio shape="circle" name="weixin"></u-radio>
				</view>
				<view class="weixin zhifubao" >
					<view class="left">
						<u-icon name="zhifubao" size="35" color="#02A9F1"></u-icon>
						<text class="method">支付宝支付</text>
					</view>
					<u-radio shape="circle" name="zhifubao"></u-radio>
				</view>
			</u-radio-group>
		</view>
		<u-button type="primary" text="确定" shape="circle"></u-button>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				value: '',
			}
		},
		methods: {
			groupChange(info) {
				console.log(info);
			}
		}

	}
</script>

<style lang="scss">
	.pay-container {
		padding: 0 15px;

		.pay-top {
			text-align: center;
			padding: 100px 0;

			.wait {
				color: #9098A0;
			}

			.total {
				font-size: 18px;
			}
		}

		.pay {
			.u-radio-group  {
				display: flex;
				flex-direction: column;
			}
			.weixin {
				display: flex;
				justify-content: space-between;
				border-bottom: 1px solid #E8E7E7;
				// padding-bottom: 10px;

				.left {
					display: flex;
					align-items: center;

					.method {
						margin-left: 10px;
					}
				}
			}
			.zhifubao {
				margin-top: 10px; 
				border-bottom: none;
				margin-bottom: 15px;
			}
		}
	}
</style>
